<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
	<f:loadBundle basename="mensagens" var="msg" />
	<c:if test="${empty estiloTextoRotulo}">
		<c:set var="estiloTextoRotulo" value="${'estiloRotulo'}" />
	</c:if>
	<c:if test="${empty requerido}">
		<c:set var="requerido" value="false" />
	</c:if>
	<c:if test="${empty rendered}">
		<c:set var="rendered" value="true" />
	</c:if>
	<c:if test="${empty id}">
		<h:panelGroup rendered="${rendered}">
			<a4j:loadStyle src="resource:///cssjs/template.css" />
			<c:if test="#{requerido}"><h:graphicImage value="/images/icons/asterisco.png" styleClass="imgRequerido"/></c:if>
			<h:outputLabel styleClass="${estiloTextoRotulo}" value="${rotulo}:"/>
		</h:panelGroup>
	</c:if>
	<c:if test="${!(empty id)}">
		<h:panelGroup id="#{id}" rendered="${rendered}">
			<a4j:loadStyle id="#{id}StyleTemplate" src="resource:///cssjs/template.css" />
			<c:if test="#{requerido}"><h:graphicImage id="#{id}Image" value="/images/icons/asterisco.png" styleClass="imgRequerido"/></c:if>
			<h:outputLabel id="#{id}Label" styleClass="${estiloTextoRotulo}" value="${rotulo}:"/>
		</h:panelGroup>
	</c:if>
</ui:composition>
</html>